#!/usr/bin/env bash

pids=`lsof -i :7272 | awk '{print $2}'`

for pid in $pids
do
    expr $pid "+" 10 &> /dev/null
    if [ $? -eq 0 ];then
        kill $pid
    fi
done
